package com.brewdroid.model;

import java.util.List;



public class Recipe{
		
	private String name;
	private String description;
	private String style;
	private float originalGravity;
	private float finalGravity;
	private float abv;
	
	List<IngredientStep> ingredientList;

	public Recipe() {
		
	}
	
	public Recipe(String aName, String aDesctiption, String aStyle, float aOrginalGravity, float aFinalGravity, float aAbv)
	{
		name=aName;
		description=aDesctiption;
		style=aStyle;
		originalGravity=aOrginalGravity;
		finalGravity=aFinalGravity;
		abv=aAbv;		
	}
	
	public List<IngredientStep> getIngredientList() {
		return ingredientList;
	}

	public void setIngredientList(List<IngredientStep> ingredientList) {
		this.ingredientList = ingredientList;
	}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("name:"+name+ "\n description:"+description+"\n style:"+style+ 
				"\n orginalGravity:"+originalGravity+ "\n finalGravity:"+finalGravity+ "\n abv:"+abv);
		int cnt =1;
		sb.append("\n \n");
		for(IngredientStep is : ingredientList)
		{	sb.append("Ingredient #"+Integer.toString(cnt));
			sb.append(is.toString() +"\n");
			cnt++;
		}
		return sb.toString();
	}


	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}



	public String getDescription() {
		return description;
	}



	public void setDescription(String description) {
		this.description = description;
	}



	public String getStyle() {
		return style;
	}



	public void setStyle(String style) {
		this.style = style;
	}



	public float getOriginalGravity() {
		return originalGravity;
	}



	public void setOriginalGravity(float originalGravity) {
		this.originalGravity = originalGravity;
	}



	public float getFinalGravity() {
		return finalGravity;
	}



	public void setFinalGravity(float finalGravity) {
		this.finalGravity = finalGravity;
	}



	public float getAbv() {
		return abv;
	}



	public void setAbv(float abv) {
		this.abv = abv;
	}
}
